<%@ include file="/common/taglibs.jsp"%>

<head>
<title><fmt:message key="copyrightApplicationDetail.title" /></title>
<meta name="heading"
	content="<fmt:message key='copyrightApplicationDetail.heading'/>" />
</head>

<c:set var="delObject" scope="request">
	<fmt:message key="copyrightApplicationList.copyrightApplication" />
</c:set>
<script type="text/javascript">
	var msgDelConfirm = "_$tag______________________________$tag_____________________________$tag_________";
</script>

<div class="span7">
	<s:form id="copyrightApplicationForm" action="saveCopyrightApplication"
		method="post" validate="true" cssClass="form-horizontal"
		theme="bootstrap"
		label="%{getText('copyrightApplicationDetail.heading')}">
		<s:hidden key="copyrightApplication.id" />
		
		<s:hidden name="copyrightApplication.names" />
		<s:hidden name="copyrightApplication.peopleTypes" />
		<s:hidden name="copyrightApplication.countries" />
		<s:hidden name="copyrightApplication.provinces" />
		<s:hidden name="copyrightApplication.citys" />
		<s:hidden name="copyrightApplication.idTypes" />
		<s:hidden name="copyrightApplication.idNumbers" />
		<%-- <s:hidden name="copyrightApplication.gardens" /> --%>
		<s:hidden name="copyrightApplication.busTypes" />
		
		
		<p/>
		<!-- Software Fundamental Information  --BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.softwareFullName" /> </legend>
			
			<ul class="item">
				<s:textfield key="copyrightApplication.softFullName" required="true"/>
				<s:textfield key="copyrightApplication.softForShort"/>
		
				<div class="control-group">
					<label class="control-label"> 
						<fmt:message key="copyrightApplication.softNumber" />
					</label>
					<div class="controls">
						<input class="input-medium" name="copyrightApplication.softNumber"
							type="text" readonly="true"
							value="<s:property value="copyrightApplication.softNumber"/>"/>
						<button class="btn btn-info" type="button" id="copyrightApplication_button_softNumber">
							<fmt:message key="copyrightApplication.button.selectClassifyNum" />
						</button>
					</div>
				</div>

				<s:textfield key="copyrightApplication.editionNumber" required="true" />
				
				<div class="control-group">
					<label class="control-label"> 
						<fmt:message key="copyrightApplication.developCircs" />
					</label>
					<div class="controls">
						<label class="radio inline"> 
							<input type="radio" name="copyrightApplication.developCircs" value="1"/>
							<fmt:message key="copyrightApplication.developCircs.original" />
						</label>
						<label class="radio inline"> 
							<input id="copyrightApplication-developCircs-1" type="radio" name="copyrightApplication.developCircs" value="2"/>
							<fmt:message key="copyrightApplication.developCircs.modify" />
						</label> 
						
						<div id="softIntroModifyContainer">
						<label class="checkbox">
							<s:checkbox name="copyrightApplication.developCircsExplainChecked" theme="simple" fieldValue="true"/>
							<!-- <input type="checkbox" name="copyrightApplication.developCircsExplain" value="0"/> -->
							<fmt:message key="copyrightApplication.developCircsExplain" />
						</label>
						
						<label class="checkbox">
							<s:checkbox name="copyrightApplication.origSoftRegCircsChecked" theme="simple" fieldValue="true"/>
							<!-- <input type="checkbox" name="copyrightApplication.origSoftRegCircs" value="0"/> -->
							<fmt:message key="copyrightApplication.origSoftRegCircs" />
						</label>
						
						<div>
							<fmt:message key="copyrightApplication.origSoftModifyDescription" />
							<s:textarea key="copyrightApplication.origSoftModifyDescription"
								cssClass="input-large" theme="simple"/>
						</div>
						</div>
						
						 
					</div>
				</div>

				<div class="control-group ">
					<label class="control-label">
						<fmt:message key="copyrightApplication.completeDate" />
					</label>
					<div class="controls">
						<div class="input-append">
							<s:textfield key="copyrightApplication.completeDate" cssClass="input-large datepicker" readonly="true" required="true" theme="simple"/>
							<span class="add-on ui-datepicker-trigger"><i class="icon-calendar"></i></span>
						</div>
					</div>
				</div>
				
				
				<div class="control-group">
					<label class="control-label"> 
						<fmt:message key="copyrightApplication.publishStatus" />
					</label>
					<div class="controls">
						<label class="radio inline"> 
							<input id="copyrightApplication-publishStatus-0" type="radio" name="copyrightApplication.publishStatus" value="1"/>
							<fmt:message key="copyrightApplication.publishStatus.published" />
						</label>
						<label class="radio inline"> 
							<input id="copyrightApplication-publishStatus-1" type="radio" name="copyrightApplication.publishStatus" value="0"/>
							<fmt:message key="copyrightApplication.publishStatus.notPublished" />
						</label>  
					</div>
				</div>
				

				<div class="control-group" id="publishedInfoContainer">
					<label class="control-label">
						<fmt:message key="copyrightApplication.label.publishedInfo" />
					</label>
					<div class="controls">
						<div class="form-inline">
							<label>
								<fmt:message key="copyrightApplication.appearDate" />:
							</label>
							
							<div class="input-append">
								<input class="input-small datepicker" size="16" readonly type="text" readonly
									name="copyrightApplication.appearDate"
									value="<s:property value="copyrightApplication.appearDate"/>" /> <span
									class="add-on ui-datepicker-trigger"><i class="icon-calendar"></i></span>
							</div>
							
						</div>
						<p/>
						<div class="form-inline">
							<label>
								<fmt:message key="copyrightApplication.appearAreaCountry" />:
							</label> 
							<input class="input-small" type="text"
								name="copyrightApplication.appearAreaCountry"
								value="<s:property value="copyrightApplication.appearAreaCountry"/>" readonly="true"/>

							<label>
								<fmt:message key="copyrightApplication.appearAreaCity" />:
							</label> 
							<input type="text" class="input-small" name="copyrightApplication.appearAreaCity"
								value="<s:property value="copyrightApplication.appearAreaCity"/>" />
						</div>
					</div>
				</div>
				
				
				<div class="control-group">
					<label class="control-label"> 
						<fmt:message key="copyrightApplication.developMode" />
					</label>
					<div class="controls">
						<label class="radio inline"> 
							<input id="copyrightApplication-developMode-0" type="radio" name="copyrightApplication.developMode" value="1"/>
							<fmt:message key="copyrightApplication.developMode.in-dev" />
						</label>
						<label class="radio inline"> 
							<input id="copyrightApplication-developMode-1" type="radio" name="copyrightApplication.developMode" value="2"/>
							<fmt:message key="copyrightApplication.developMode.cor-dev" />
						</label> 
						<label class="radio inline"> 
							<input id="copyrightApplication-developMode-2" type="radio" name="copyrightApplication.developMode" value="3"/>
							<fmt:message key="copyrightApplication.developMode.del-dev" />
						</label> 
						<label class="radio inline"> 
							<input id="copyrightApplication-developMode-3" type="radio" name="copyrightApplication.developMode" value="4"/>
							<fmt:message key="copyrightApplication.developMode.task-dev" />
						</label>  
					</div>
				</div>
				

				<div class="control-group ">
					<label class="control-label">
						<fmt:message
							key="copyrightApplication.label.rightObtainMode" />
					</label>
					<div class="controls">
						<label class="radio"> 
							<input id="copyrightApplication-rightObtainMode-0" type="radio" name="copyrightApplication.rightObtainMode" value="1" checked>
							<fmt:message key="copyrightApplication.rightObtainMode.orig" />
						</label> 
				
						<label class="radio"> 
							<input id="copyrightApplication-rightObtainMode-1" type="radio" name="copyrightApplication.rightObtainMode" value="2"> 
							<fmt:message key="copyrightApplication.rightObtainMode.inheri" /> 
							( 
							<label class="radio inline"> 
								<input id="copyrightApplication-inheritanceMode-0" type="radio" name="copyrightApplication.inheritanceMode" value="22" checked />
								<fmt:message key="copyrightApplication.rightObtainMode.inheri.22" />
							</label> 
							<label class="radio inline"> 
								<input id="copyrightApplication-inheritanceMode-1" type="radio" name="copyrightApplication.inheritanceMode" value="23" /> 
								<fmt:message key="copyrightApplication.rightObtainMode.inheri.23" />
							</label> 
							<label class="radio inline"> 
								<input id="copyrightApplication-inheritanceMode-2" type="radio" name="copyrightApplication.inheritanceMode" value="21" /> 
								<fmt:message key="copyrightApplication.rightObtainMode.inheri.21" />
							</label> 
							)
						</label> 
						<div>
							<s:checkbox name="copyrightApplication.softRegChecked" theme="simple" fieldValue="true"/>
							<!-- <input type="checkbox" value="0" name="copyrightApplication.isSoftReg" />  -->
							<fmt:message key="copyrightApplication.isSoftReg" /> 
							(
								<fmt:message key="copyrightApplication.regNumber" /> 
								<input type="text" class="input-medium" name="copyrightApplication.regNumber"
									value="<s:property value="copyrightApplication.regNumber"/>" />
							)
						</div>
				
						<p/>
						<div>
							<s:checkbox name="copyrightApplication.softChangedChecked" theme="simple" fieldValue="true"/>
							<!-- <input type="checkbox" value="0" name="copyrightApplication.isSoftChanged" />  -->
							<fmt:message key="copyrightApplication.isSoftChanged" /> 
							(
								<fmt:message key="copyrightApplication.changeNumber" /> 
								<input type="text" class="input-medium" name="copyrightApplication.changeNumber"
									value="<s:property value="copyrightApplication.changeNumber"/>" />
							)
						</div>
				
				
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"> 
						<fmt:message key="copyrightApplication.rightScope" />
					</label>
					<div class="controls">
						<label class="radio inline"> 
							<input type="radio" name="copyrightApplication.rightScope" value="1"/>
							<fmt:message key="copyrightApplication.rightScope.all" />
						</label>
						<label class="radio inline"> 
							<input type="radio" name="copyrightApplication.rightScope" value="2"/>
							<fmt:message key="copyrightApplication.rightScope.part" />
						</label> 
						
						<div>
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="1"/>
								<fmt:message key="copyrightApplication.rightScopePart.publish" />
							</label>
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="2"/>
								<fmt:message key="copyrightApplication.rightScopePart.signature" />
							</label>
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="3"/>
								<fmt:message key="copyrightApplication.rightScopePart.modification" />
							</label> 
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="4"/>
								<fmt:message key="copyrightApplication.rightScopePart.copy" />
							</label> 
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="5"/>
								<fmt:message key="copyrightApplication.rightScopePart.release" />
							</label> 
						</div>
						<div>
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="6"/>
								<fmt:message key="copyrightApplication.rightScopePart.rent" />
							</label> 
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="7"/>
								<fmt:message key="copyrightApplication.rightScopePart.ic" />
							</label> 
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="8"/>
								<fmt:message key="copyrightApplication.rightScopePart.translate" />
							</label> 
							<label class="checkbox inline"> 
								<input type="checkbox" name="copyrightApplication.rightScopePart" value="9"/>
								<fmt:message key="copyrightApplication.rightScopePart.other" />
							</label>  
						</div>
					</div>
				</div>

				<%-- <s:checkboxlist name="copyrightApplication.rightScopePart" labelposition="inline"
					list="rightScopePartList" listKey="value" listValue="label"/> --%>
			</ul>
		</fieldset>
		<!-- Software Fundamental Information  --END -->

		<!-- Software Technology Feature --BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.softTechFeature" /> </legend>
			<ul class="item">
				<s:textarea key="copyrightApplication.hardwareEnv"
					cssClass="input-xxlarge" />
				<s:textarea key="copyrightApplication.softwareEnv"
					cssClass="input-xxlarge" />
				<s:textfield key="copyrightApplication.programLanguage" required="true"/>
				<s:textfield key="copyrightApplication.sourceCodeCapacity" required="true" />
				<s:textarea key="copyrightApplication.softFunctionAndSpecialty" required="true"
					cssClass="input-xxlarge" cssStyle="overflow:visible" />
			</ul>
		</fieldset>
		<!-- Software Technology Feature --END -->

		<!-- Copyrighter Profile --BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.copyrighter" /> </legend>
			<p/>
			<div id="copyrighterItem">
				<%-- <c:if test="${copyrightApplication.id != null}">
					test
				</c:if>
				<c:if test="${copyrightApplication.id == null}">
					null
				</c:if> --%>
				<ul class="item">
					<s:textfield  required="true" name="_names" value="%{copyrightApplication.copyrighters[0].name}" label="%{getText('copyrightApplication.label.copyrighterName')}" />
				
					<s:select name="_peopleTypes"  value="%{copyrightApplication.copyrighters[0].peopleType}"
						label="%{getText('copyrightApplication.peopleType1')}" list="peopleTypeList" listKey="value" listValue="label" />
				
					<crs:country name="_countries" value="%{copyrightApplication.copyrighters[0].country}" label="%{getText('copyrightApplication.country1')}" listKey="value" listValue="label"/>
					<crs:province name="_provinces" value="%{copyrightApplication.copyrighters[0].province}" label="%{getText('copyrightApplication.province1')}"  listKey="value" listValue="label"/>
					<s:textfield name="_citys" value="%{copyrightApplication.copyrighters[0].city}" label="%{getText('copyrightApplication.city1')}"  required="true"/>
					<crs:idtype  name="_idTypes" value="%{copyrightApplication.copyrighters[0].idType}" label="%{getText('copyrightApplication.idTypes1')}" listKey="value" listValue="label"/>
					<s:textfield name="_idNumbers" value="%{copyrightApplication.copyrighters[0].idNumber}" label="%{getText('copyrightApplication.idNumber1')}"  required="true"/>
					<%-- <crs:garden name="_gardens" value="%{copyrightApplication.copyrighters[0].garden}" label="%{getText('copyrightApplication.garden1')}" listKey="value" listValue="label" /> --%>
					<crs:companyType name="_busTypes" value="%{copyrightApplication.copyrighters[0].busType}" label="%{getText('copyrightApplication.busType1')}" listKey="value" listValue="label"  required="true"/>
					
					<s:select key="copyrightApplication.hasLetter1" list="hasLetterList" listKey="value" listValue="label"/>
					
					<div class="control-group">
						<div class="controls">
							<button id="btn_copyrighterAdd" type="button" class="btn btn-info"><fmt:message key="button.copyrighter.add" /></button>
							<button id="btn_copyrighterDel" type="button" class="btn btn-danger" onclick="delCopyrighter(this)"><fmt:message key="button.delete" /></button>
						</div>
					</div>
				</ul>
				
				<s:iterator  value="%{copyrightApplication.copyrighters}" status="status" id="lists">
					<s:if test="%{#status.index != 0}">
						<ul class="item">
						<s:textfield  value="%{#lists.name}" name="_names" label="%{getText('copyrightApplication.label.copyrighterName')}" />
				
						 <s:select value="%{#lists.peopleType}"  name="_peopleTypes" 
							label="%{getText('copyrightApplication.peopleType1')}" list="peopleTypeList" listKey="value" listValue="label" />
				
						<crs:country value="%{#lists.country}" name="_countries" label="%{getText('copyrightApplication.country1')}" listKey="value" listValue="label"/>
						<crs:province value="%{#lists.province}" label="%{getText('copyrightApplication.province1')}" name="_provinces" listKey="value" listValue="label"/>
						<s:textfield value="%{#lists.city}" name="_citys" label="%{getText('copyrightApplication.city1')}" />
						<crs:idtype value="%{#lists.idType}" label="%{getText('copyrightApplication.idTypes1')}" name="_idTypes" listKey="value" listValue="label"/>
						<s:textfield value="%{#lists.idNumber}" label="%{getText('copyrightApplication.idNumber1')}" name="_idNumbers" />
						<%-- <crs:garden value="%{#lists.garden}" label="%{getText('copyrightApplication.garden1')}" listKey="value" listValue="label" name="_gardens"/> --%>
						<crs:companyType value="%{#lists.busType}" label="%{getText('copyrightApplication.busType1')}" listKey="value" listValue="label" name="_busTypes"/>
					 
						<div class="control-group">
							<div class="controls">
								<button id="btn_copyrighterAdd" type="button" class="btn btn-info"><fmt:message key="button.copyrighter.add" /></button>
								<button id="btn_copyrighterDel" type="button" class="btn btn-danger" onclick="delCopyrighter(this)"><fmt:message key="button.delete" /></button>
							</div>
						</div>
					</ul>
					</s:if> 
                	
                </s:iterator>
				
			</div>
		</fieldset>
		<!-- Copyrighter Profile --END -->

		<!-- Applier Profile BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.applierProfile" /> </legend>
			<ul class="item">
			
				<%-- <c:if test="${not empty copyrightApplication.id }"> --%>
					<s:textfield key="copyrightApplication.sqrname" required="true"/>
					<s:textfield key="copyrightApplication.sqraddress" required="true"/>
					<s:textfield key="copyrightApplication.sqrpostCode"/>
					<s:textfield key="copyrightApplication.sqrcontactPerson"/>
					<s:textfield key="copyrightApplication.sqrphone" required="true"/>
					<s:textfield key="copyrightApplication.sqremail" required="true"/>
					<s:textfield key="copyrightApplication.sqrmobile"/>
					<s:textfield key="copyrightApplication.sqrfax"/>
				<%-- </c:if> --%>
				
				<%-- <c:if test="${empty copyrightApplication.id }">
					<security:authentication property="principal" var="authentication" scope="request"/>
				
					<s:textfield key="copyrightApplication.sqrname" required="true" value="%{#request.authentication.companyName}"/>
					<s:textfield key="copyrightApplication.sqraddress" required="true" value="%{#request.authentication.address.address}"/>
					<s:textfield key="copyrightApplication.sqrpostCode" value="%{#request.authentication.address.postalCode}"/>
					<s:textfield key="copyrightApplication.sqrcontactPerson" required="true" value="%{#request.authentication.contact}"/>
					<s:textfield key="copyrightApplication.sqrphone" required="true" value="%{#request.authentication.contactNumber}"/>
					<s:textfield key="copyrightApplication.sqremail" required="true" value="%{#request.authentication.email}"/>
					<s:textfield key="copyrightApplication.sqrmobile" value="%{#request.authentication.phoneNumber}"/>
					<s:textfield key="copyrightApplication.sqrfax" value="%{#request.authentication.fax}"/>
				</c:if> --%>
			</ul>
		</fieldset>
		<!-- Applier Profile END -->

		<!-- Agent Profile BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.agentProfile" /> </legend>
			<ul class="item">
				<div class="control-group ">
					<div class="controls">
						<fmt:message key="copyrightApplication.agentDesc" />
					</div>
				</div>
				<s:textfield name="copyrightApplication.agentDesc" readonly="true"/>
				<s:textfield key="copyrightApplication.dlrname" readonly="true"/>
				<s:textfield key="copyrightApplication.dlraddress"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlrcontactPerson"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlremail"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlrphone"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlrmobile"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlrfax"  readonly="true"/>
				<s:textfield key="copyrightApplication.dlrpostCode"  readonly="true"/>
			</ul>
		</fieldset>
		<!-- Agent Profile END -->

		<!-- Software Identify Material BEGIN -->
		<fieldset>
			<legend><fmt:message key="copyrightApplication.title.softMI" /> </legend>
			
			<ul class="item">
				<div class="control-group ">
					<div class="control-label">
						<input id="copyrightApplication-difmatReferMode-0" type="radio" name="copyrightApplication.difmatReferMode"
							checked value="1" />
						<fmt:message key="copyrightApplication.difmatReferMode.ordinary" />
					</div>
					<div class="controls">
						<p>
							<fmt:message key="copyrightApplication.difmatReferMode.ordinary.desc1" />
						</p>
						<p>
							<fmt:message key="copyrightApplication.difmatReferMode.ordinary.desc2" />
						</p>
						<p>
							<input type="radio" value="oneDoc" name="copyrightApplication.isMutilDoc"/>
							<fmt:message key="copyrightApplication.isMutilDoc.oneDoc" />
						</p>
						<p>
							<input id="copyrightApplication-isMutilDoc-1" type="radio" value="mutilDoc" name="copyrightApplication.isMutilDoc"/>
							<fmt:message key="copyrightApplication.isMutilDoc.MultiDoc" />
							<input type="text" class="input-medium" name="copyrightApplication.mutilDocType" value="<s:property value="copyrightApplication.mutilDocType"/>"/>
						</p>
						
					</div>
				</div>
				<%-- <s:radio name="copyrightApplication.isMutilDoc" list="mutilDocList"
					listKey="value" listValue="label"/> --%>

				<div class="control-group ">
					<div class="control-label">
						<input id="copyrightApplication-difmatReferMode-1" type="radio" name="copyrightApplication.difmatReferMode"
							value="2" />
						<fmt:message key="copyrightApplication.difmatReferMode.exception" />
					</div>
					
					<div class="controls">
						<p>
							<input type="radio" value="exp1" name="copyrightApplication.difmatReferModeExcep"/>
							<fmt:message key="copyrightApplication.difmatReferMode.exception.1" />
							<input type="text" class="input-medium" name="copyrightApplication.difmatReferPages" value="<s:property value="copyrightApplication.difmatReferPages"/>"/>
						</p>
						<p>
							<input type="radio" value="exp2" name="copyrightApplication.difmatReferModeExcep"/>
							<fmt:message key="copyrightApplication.difmatReferMode.exception.2" />
						</p>
						<p>
							<input type="radio" value="exp3" name="copyrightApplication.difmatReferModeExcep"/>
							<fmt:message key="copyrightApplication.difmatReferMode.exception.3" />
						</p>
					</div>
				</div>
		
				<%-- <s:radio name="copyrightApplication.difmatReferModeExcep"
					list="exceptionalRepositList" listKey="value" listValue="label"/> --%>
			</ul>
		</fieldset>
		<!-- Software Identify Material END -->

		<div id="actions" class="form-actions">
			<security:authorize ifAllGranted="ROLE_USER">
				<s:if test="%{copyrightApplication.state == null || copyrightApplication.state != 2}">
				<s:submit type="button" cssClass="btn btn-primary" method="save" onclick="return preSubmit();"
					key="button.save" theme="simple" id="copyrightApplication_button_save">
					<i class="icon-ok icon-white"></i>
					<fmt:message key="button.save" />
				</s:submit>
				</s:if>
				<!--<c:if test="${not empty copyrightApplication.id}">
					<s:submit type="button" cssClass="btn btn-warning" method="delete"
						key="button.delete" onclick="return confirmMessage(msgDelConfirm)"
						theme="simple">
						<i class="icon-trash icon-white"></i>
						<fmt:message key="button.delete" />
					</s:submit>
				</c:if>-->
			</security:authorize>
			<security:authorize ifAllGranted="ROLE_ADMIN">
				<s:if test="%{copyrightApplication.state == 1}">
				<s:submit type="button" cssClass="btn btn-success" method="approve" onclick="return preSubmit();"
					key="button.review.pass" theme="simple">
					<i class="icon-ok icon-white"></i>
					<fmt:message key="button.review.pass" />
				</s:submit>
				<s:submit type="button" cssClass="btn btn-danger" method="refuse" onclick="return preSubmit();"
					key="button.review.notPass" theme="simple">
					<i class="icon-ok icon-white"></i>
					<fmt:message key="button.review.notPass" />
				</s:submit>
				</s:if>
			</security:authorize>

			<s:submit type="button" cssClass="btn" method="cancel"
				key="button.cancel" theme="simple">
				<i class="icon-remove"></i>
				<fmt:message key="button.cancel" />
			</s:submit>
		</div>
	</s:form>
</div>

<script type="text/javascript">
	$(document).ready(
			function() {
				$("input[type='text']:visible:enabled:first",
						document.forms['copyrightApplicationForm']).focus();
				
				//init fields
				initFields();
			});
	
	
</script>


<c:set var="scripts" scope="request">
<%@ include file="/scripts/applyForm.js"%>
</c:set>
